plugins {
    kotlin("jvm") version "1.9.0"
    id("com.autonomousapps.dependency-analysis") version "1.19.0"
    kotlin("plugin.serialization") version "1.9.0"
}

repositories {
    mavenCentral()
    google()
    gradlePluginPortal()
    maven { url = uri("https://jitpack.io") }
}

allprojects {
    apply(plugin = "kotlin")
    apply(plugin = "kotlinx-serialization")
    apply(plugin = "java")
    apply(plugin = "java-library")
}
dependencies {
}

tasks.register<Copy>("copyRuntimeLibs") {
    subprojects.forEach {
        from(it.sourceSets.main.get().runtimeClasspath)
        into("build/runtimelibs/")
    }
}

tasks.register<Delete>("cleanLogs") {
    delete("logs")
}